From 74076d2a04cd67164f0c6476ccda8ad26b2f5f10 Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Wed, 6 May 2015 02:05:41 +0200 Subject: [PATCH] fix typos caught by codespell --- src/cargo/ops/cargo_rustc/job.rs | 2 +- src/cargo/ops/cargo_rustc/job_queue.rs | 2 +- src/cargo/sources/registry.rs | 2 +- src/cargo/util/mtime.rs | 2 +- src/registry/lib.rs | 2 +- tests/test_cargo_bench.rs | 4 ++-- tests/test_cargo_compile_git_deps.rs | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/job.rs b/src/cargo/ops/cargo_rustc/job.rs index 4467d37e6..b3d58e1d6 100644 --- a/src/cargo/ops/cargo_rustc/job.rs +++ b/src/cargo/ops/cargo_rustc/job.rs @@ -5,7 +5,7 @@ use util::{CargoResult, Fresh, Dirty, Freshness}; pub struct Job { dirty: Work, fresh: Work } /// Each proc should send its description before starting. -/// It should send either once or close immediatly. +/// It should send either once or close immediately. pub struct Work { inner: Box, CargoResult<()>> + Send>, } diff --git a/src/cargo/ops/cargo_rustc/job_queue.rs b/src/cargo/ops/cargo_rustc/job_queue.rs index 435de0fb5..3f74e85e9 100644 --- a/src/cargo/ops/cargo_rustc/job_queue.rs +++ b/src/cargo/ops/cargo_rustc/job_queue.rs @@ -198,7 +198,7 @@ impl<'a> JobQueue<'a> { Ok(()) } - // This isn't super trivial becuase we don't want to print loads and + // This isn't super trivial because we don't want to print loads and // loads of information to the console, but we also want to produce a // faithful representation of what's happening. This is somewhat nuanced // as a package can start compiling *very* early on because of custom diff --git a/src/cargo/sources/registry.rs b/src/cargo/sources/registry.rs index e9c87b0aa..98d99576d 100644 --- a/src/cargo/sources/registry.rs +++ b/src/cargo/sources/registry.rs @@ -316,7 +316,7 @@ impl<'a, 'b> RegistrySource<'a, 'b> { // TODO: don't download into memory (curl-rust doesn't expose it) let resp = try!(handle.get(url.to_string()).follow_redirects(true).exec()); if resp.get_code() != 200 && resp.get_code() != 0 { - return Err(internal(format!("Failed to get 200 reponse from {}\n{}", + return Err(internal(format!("Failed to get 200 response from {}\n{}", url, resp))) } diff --git a/src/cargo/util/mtime.rs b/src/cargo/util/mtime.rs index c0701fd73..13d4296bc 100644 --- a/src/cargo/util/mtime.rs +++ b/src/cargo/util/mtime.rs @@ -5,7 +5,7 @@ use std::path::Path; /// A helper structure to represent the modification time of a file. /// -/// The actual value contined within is platform-specific and does not have the +/// The actual value contained within is platform-specific and does not have the /// same meaning across platforms, but comparisons and stringification can be /// significant among platforms. #[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Copy, Clone)] diff --git a/src/registry/lib.rs b/src/registry/lib.rs index c7ba6f029..331933bda 100644 --- a/src/registry/lib.rs +++ b/src/registry/lib.rs @@ -251,7 +251,7 @@ fn handle(response: result::Result) impl fmt::Display for Error { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match *self { - Error::NonUtf8Body => write!(f, "reponse body was not utf-8"), + Error::NonUtf8Body => write!(f, "response body was not utf-8"), Error::Curl(ref err) => write!(f, "http error: {}", err), Error::NotOkResponse(ref resp) => { write!(f, "failed to get a 200 OK response: {}", resp) diff --git a/tests/test_cargo_bench.rs b/tests/test_cargo_bench.rs index 2d643fbf2..7c5dba752 100644 --- a/tests/test_cargo_bench.rs +++ b/tests/test_cargo_bench.rs @@ -68,7 +68,7 @@ test!(bench_tarname { let expected_stdout = format!("\ {compiling} foo v0.0.1 ({dir}) -{runnning} target[..]release[..]bin2[..] +{running} target[..]release[..]bin2[..] running 1 test test run2 ... bench: 0 ns/iter (+/- 0) @@ -77,7 +77,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured ", compiling = COMPILING, - runnning = RUNNING, + running = RUNNING, dir = prj.url()); assert_that(prj.cargo_process("bench").arg("--bench").arg("bin2"), diff --git a/tests/test_cargo_compile_git_deps.rs b/tests/test_cargo_compile_git_deps.rs index 2382e4732..b760ec39f 100644 --- a/tests/test_cargo_compile_git_deps.rs +++ b/tests/test_cargo_compile_git_deps.rs @@ -225,7 +225,7 @@ test!(cargo_compile_git_dep_tag { "#) }).unwrap(); - // Make a tag correponding to the current HEAD + // Make a tag corresponding to the current HEAD let repo = git2::Repository::open(&git_project.root()).unwrap(); let head = repo.head().unwrap().target().unwrap(); repo.tag("v0.1.0", -- 2.30.2